package org.finjic.utils;

import org.finjic.entity.BeanDefinition;

import java.util.Collection;

/**
 * User: Taras
 * Date: 11.11.12
 * Time: 16:14
 */
public class AppUtils {

    public static BeanDefinition getBeanDefinitionById(String id, Collection<? extends BeanDefinition> beanDefinitions) {
        for (BeanDefinition beanDefinition : beanDefinitions) {
            if (beanDefinition.getId().equals(id)) {
                return beanDefinition;
            }
        }
        return null;
    }
}
